package com.lzy.product.apis.impl;

import com.github.pagehelper.PageInfo;
import com.lzy.framework.core.orm.db.Pager;
import com.lzy.product.apis.ProductSaleLevelServiceApi;
import com.lzy.product.dtos.ProductSaleLevelDto;
import com.lzy.product.service.ProductSaleLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by WIN7 on 2017/12/11.
 */
@Service
public class ProductSaleLevelServiceApiImpl implements ProductSaleLevelServiceApi {

    @Autowired
    ProductSaleLevelService productSaleLevelService;

    @Override
    public Long insert(ProductSaleLevelDto dto) {
        return productSaleLevelService.insert(dto);
    }

    @Override
    public Boolean update(ProductSaleLevelDto dto) {
        return productSaleLevelService.update(dto);
    }

    @Override
    public Boolean delete(Long id) {
        return productSaleLevelService.delete(id);
    }

    @Override
    public Boolean remove(Long id) {
        return productSaleLevelService.remove(id);
    }

    @Override
    public ProductSaleLevelDto findById(Long id) {
        return productSaleLevelService.findById(id);
    }

    @Override
    public List<ProductSaleLevelDto> query(ProductSaleLevelDto dto) {
        return productSaleLevelService.query(dto);
    }

    @Override
    public PageInfo<ProductSaleLevelDto> selectList(Pager pager, ProductSaleLevelDto dto) {
        return productSaleLevelService.selectList(pager, dto);
    }

    @Override
    public Integer updateList(String ids) {
        return productSaleLevelService.updateList(ids);
    }
}
